package com.zucc.controller.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author : charspan
 * @Description :
 * @create : 2021-12-02 6:04 下午
 */
@Data
@ApiModel("新增字典项参数")
public class DictItemAddReq {
    @ApiModelProperty(value = "所属字典编号", required = true)
    @NotNull(message = "所属字典编号不能为空")
    private Long dictId;

    @ApiModelProperty(value = "字典项名称", required = true)
    @NotNull(message = "字典项名称不能为空")
    private String name;

    @ApiModelProperty(value = "字典项值", required = true)
    @NotNull(message = "字典项值不能为空")
    private Integer value;

    @ApiModelProperty(value = "排序", required = true)
    @NotNull(message = "排序不能为空")
    private Integer sort;
}
